/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BusinessLayer;

import java.security.NoSuchAlgorithmException;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;

/**
 *
 * @author seiterl
 */
public class DRM_License_Generator {

    private DRM_License_Generator () {}
    
    public static byte[] generateNewSymKey() throws NoSuchAlgorithmException {
        //KeyGenerator kg = KeyGenerator.getInstance("DES");
        KeyGenerator kg = KeyGenerator.getInstance("AES");
        kg.init(128);
        SecretKey sk = kg.generateKey();
        byte[] key_bytes = sk.getEncoded();
        return key_bytes;
    }
}
